************************

PURPOSE: This file provides instructions to replicate the results of the manuscript "Scaling forest restoration in the tropics: evidence from Brazil's Atlantic Forest Restoration Pact" using the included do-files and datasets. 

************************


******
Step 1
******

Create a folder named "Replication", and place the 8 .do files inside. 

Create a subfolder named "Data", and place the 6 .dta files inside. 

Create a subfolder named "Output". Inside this, create two subfolders: "Figures" and "Tables". 



******
Step 2
******

Open the do-file called "01_MasterDo_Replication.do".

Change the text in "YOUR PATH" to the file path of your "Replication" folder. 

	Example: "YOUR PATH" ---> "C:\Users\totor\Downloads\Replication"


******
Step 3
******

Navigate to "// files" in "01_MasterDo_Replication.do".

The indented "local" commands in this section correspond to the numbered do-files in the "Replication" folder. These do-files replicate the corresponding results of the paper.

Initially, set all values to 1 to run all do-files in numerical order. This is necessary due to cross-referencing of figures between some do-files. 

Afterwards, to run select do-file(s), set the corresponding value(s) to 1 and the rest to zero. 

Example: 

	// files

	local sumstats							0
	local mainregressions						1
	local mechanisms						0
	local heterogeneity						0
	local robustness						0
	local event							0


******
Step 4
******

To execute the code of the selected do-file(s), run the single do-file: "01_MasterDo_Replication.do"

This can be performed using CTL+D or by clicking the "Execute(do)" button at the top of the Stata interface. 

If the file path is set correctly in Step 2, then the do-file(s) set to "1" in Step 3 will run. 

All output will be sent to the "Output" folder inside the "Replication" folder. 


******
Additional Information:
******

The code that performs matching ("02_Matching_Replication") is provided for expositional purposes and is not required for replication with post-matching data. 


******
Note: If any issues arise, please reach out to Roberto Toto at totor@oregonstate.edu. 
******

